﻿@using Webdiyer.WebControls.Mvc;
@model  Webdiyer.WebControls.Mvc.PagedList<myframework._99_热身.time._2011_10_24_scm.City>
@{
    ViewBag.Title = "Index";
}
<h2>
    Index</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
        </th>
        <th>
            CityName
        </th>
        <th>
            father
        </th>
        <th>
            IsShow
        </th>
        <th>
            HasRuFengDa
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.cityID }) |
                @Html.ActionLink("Details", "Details", new { id = item.cityID }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.cityID })
            </td>
            <td>
                @item.CityName
            </td>
            <td>
                @item.father
            </td>
            <td>
                @item.IsShow
            </td>
            <td>
                @item.HasRuFengDa
            </td>
        </tr>
        
    }
    <tr>
        <td>
            @Ajax.Pager(Model.TotalItemCount, Model.PageSize, Model.CurrentPageIndex, "index", "city", "Default",
new PagerOptions
{
    PageIndexParameterName = "id",
    NextPageText = "next2",
    ShowGoButton = true,
    HorizontalAlign = "right",
    AlwaysShowFirstLastPageNumber=false,
    
    PageNumberFormatString = "{0}"
}, new { }, new AjaxOptions { }, new { })
        </td>
    </tr>
</table>
